added ability to hide second pane