Updated how infowindow's close when maps change state