moved the typeahead controller to its own file