update marker click event for public add marker method