added toc widget, use static template for text widget