added the call o the events heandling function in the mapEvents.js