refactoring action template