Wired up the GUI to the main object