Added saving functionality to the color fields.