added onclick listener for markers