Make sidebar aware of if panes are showing or not.

Test Plan:
- Load various panes, make sure menu items aren't showing that shouldn't