pass update state to backend