added pane resizing