add the directive for the typeahead