Moved events trigger to reachable elements

Triggering an event on an element which is not in the DOM does not allow
to bind a listener to it.
Added the possibility to cancel some actions in event listeners