Made button correctly display the locations of each vertex of the diagram