switching to controllerAs syntax