added a handler for the click on the marker