improve autocomplete widget