first working crack at the gui