online state change