edit form - template refactoring