add onclick listeners to markers