adding updateSearchResult method