Fixed bug in mainWindow UI