added active flag to guide toc root node