updated TagPalette to save the selected viewType
updated TagPalette.refresh not to call onPaletteInit