Add swith for viewer pane