change Pane to Region