add event listeners to each marker