move toc generation to top of page