only show sidebar when there is one to show