add event mapper
map events with on and delegate