update case by id