Rewrote the displaying and handling of the right hand pane. Code is
simplified and performance is improved.