bug fixes, new refresh feature for diagram.

Fixed the "x" - bug for tags.
Diagram will now refresh itself on data modification.