copy toc to preview