moved swatch event listeners up to the palette element