Refactored AdminController::viewData