minor changes

updating the gui is now event based