update rest controller for caregiver