cleaned up simple-gui.sc a bit