add in conditional that clears out all previous results before searching for another query