modified main window