fixed wrong pane being hidden when showing legend or article