Describe the bug
The table of contents can only be opened and closed by navigating to the headings submenu in the menubar. While this is fine for opening the outline, it feels quite cumbersome for closing it. We should add a button to the outline view to close it from itself.