AppController: adhere to style
AppController: change ndpane location

AppController: use getActivePane() instead

AppController: use existential operator to check targetOffset

AppController: use subViews.first instead of subViews[0]