Update diagram