update state selector