Dynamicallly change div and diagram name

A post was split to a new topic: Diagrams in tabs