Add event handling to Palette
Add TextSampler