Updating diagram