refactored marker click listener