change the directory structure of templates