updated viewDiagram.html closer to the template