change pane based on orentation