change autocomplete type