Controller is tested code from colorpicker