set node size and color dynamically