refactored pane classes