adding the diagram in home/index view