Moved clearSearchResults to the correct location