updates toc behaviour