fixed a few layout issues with palette