Created the main window