Controllers refactored to controller as vm.