Added pane resizing