updated the code to point to system path instead of hard coded path for templates