autocomplete improvements

https://labs.riseup.net/code/issues/4284