made it possible to add click listener to a map marker