adds typeahead widget