add event listener for map click