remove code for DOM palettes