refactor colorpicker, potentiometer, slider, stepper, switch