adds marker click handler