forms and api controller