changing syntax to controllerAs