change template directory
refactoring