Opens the main window