finalize autocomplete behavior