Autocomplete UI bug fixes and improvements