Some code optimisations and hide autocomplete dialog after completion