implementing autocomplete search with remote API call