moving template files from index to template folder