Committing changes within MainCtrl and HomeCtrl with injecting the controller into the app