Minor Pane code improvements.