Hide irrelevant submenus from the sidebar