Putting infowindow back inside click event and bringing close event on the infowindow inside the click event so that each time the infowindow opens, the starting point address on the page is inspected to determine whether or not to show a text field for a starting address inside the infowindow.