handling marker click event