Refactoring root pane.
Merge pull request #1 from svanimpe/refactoring-root-pane

Refactoring root pane.