Remade the palette viewer