Changed old controller to 'viewCtrl'

Made default controler when page loads 'AppCtrl'

Forced promise to reject instead of resolve to test 'page load'
Cleaned code and made it resolve