update state manager