move appCtrl to app.js file