update reacrd in react js