tracking of pane switching

hopefully final commit here