updated color picker code