How change color and name attribute state

Hi
I have Pump with many options selected, i need rename attribute options and icon whene change state ?
Please Help