setting template directory