abstracted away typeahead custom initializer to separate file