Added cookie based save/restore state of TOC nodes.