fix semantics error in html and adding new functionality: create a custom palette