change color definition to options attributes
change color definition to options attributes