pane visibility and resizing