table of contents to template