Erase the premious diagram when drawing the descendant diagram
Display diagram title according to the type of the diagram