Sort out the GUI