DRY up submission new and edit forms