added event emitter to elements