add main element to SVG diagram