update autocomplete functionality