settings dialog stuff
more ui stuff, event handling