[Typeahead] a lot of improvements