Improved autocomplete widget