moved AppCtrl to app.js file