template refactoring for auto event creation
template refactoring, event creation, client history