added a little bit of 'hooking up' to the GUI