add the function to change the color of tag with color pannel