Create two maps for binding each type of event to its associative element(function for handling event, dependency event type for current event)