apply autocomplete