update text when clicking marker