Adding the markers when clicked