added clipping for viewing pane