cont'd refactoring of pane manager