re arrange attributes of nodes when entered, new color for node if both entity1 and entity2