added eventhandler for creating and sending events