Refactored window pane to it's own widget