when window show,the mainwindow disable