worked on the new and edit dynamic form