Coded up the first half of the GUI