edit form generation