hooking up the gui