- updating values to react