make resetSearchResult function