refactoring of debug pane