updating data for autocomplete search