submitting the autocomplete