changed the color of the nodes to stay the same on click