successfully capturing marker click and passing marker id