Implemented color swatch onClick event