Changes to AppController