create form and simplify new and edit page