Adding the GUI to the main class.