the problem is that the event handlers have to be defined in the viewer class. the settings shouldnt be handled in the core, that gui stuff.