update caseState