added functionality to make sure only one marker is placed on the map at any given time