changed the mainWindow value