building homepage and toc