adds new mainWindow UI and some refractorings