Adding click events to the markers