update state.html