added click event handler for markers