add update and updates when changing colormap