Added the layer color logic from the original Arbiter
Save the edited attributes