added autocomplete functionality to search