Update state flow