JBIDE-18670 HTML5 Palette: Palette model refactoring

updated for new mobile palette model