Fix bug with clicking on infowindow causing a page refresh