tweeked code for maps api to allow for multiple clicks on map