change event type dispatcher to trigger the callback using the element
refactor mediator to obtain the data from the dispatched element