change the dir of template