finished the search with autocomplete