started creating main window