rought splitting code with 1 pane working