Refactor AppController of empty project