Fix submitting form on clicking close button

Added type="button" to stop submitting form if color picker is inside form.