Add a callback on the autocomplete query