Create/edit note template refactoring