right pane toggle logic redone