added template directory and home template