diagram state updated