mainWindow updated