add the color-change at changing the mode