rename eventhandler to dispatcher