Ext.onReady(function(){
    var win4;
		var button = Ext.get('show-btn4');
    showBtn4 = Ext.get('show-btn4');
     Ext.get('show-btn4').on('click', function(){  
        if(!win4){
            win4 = new Ext.Window({
                applyTo     : 'hello-win4',
                layout      : 'fit',
                width       : 440,
                height      : 320,
                x: 230,
                y: 160,
                closeAction :'hide',
                plain       : true,
                items       : new Ext.TabPanel({
                    applyTo        : 'hello-tabs4',
                    autoTabs       : true,
                    activeTab      : 0,
                    deferredRender : false,
                    border         : false
                }),

                buttons: [{
                    text     : 'Close',
                    handler  : function(){
                        win4.hide();
                    }
                }]
            });
        }
        win4.show(button);
    });
});