added eventHandler.addEvent method