Refractor palette into seperate class
Refractor palette bar