change hiding a mainWindow