update pallete control