callback function for colorButton