close TOC when clicking on different areas of the publication