update state event