framework for palette added
palette nearly working.