add typeahead to forms and move api to separate app