whole bunch of fixes. changed event handling, in preperation of updating related-lists