Created the main GUI.