update code for search autocomplete

update code for search autocomplete