refactor marcopoliview using controllerAs