redesign of pane handling