added event handling to baseobjects