Close infowindow on refresh and change category