-fix subpalettes show double palettes
 -change subpalettes-html-structur
 -set subpalettes-id for display/hide
-remove old unused code