use global AppController in plugin