refactoring the pane config to simplify.