Upgrade mainWindow