update text when color is picked, code cleanup