fix adding panes