routing form elements and used model schema to fill in html