Added the main window