remove the old diagram, add the new ones modifications