the main window is now working