added a if statement to deal with the situation that when selecting the same location as it was, then don't send a request