add set current state after update