Fix ATR panning issue, rewrite logic for adding pane. Closes #4.