move infowindow to global variable to only allow single info window open at a time.