Hide panes if nothing is selected