added updateFieldStyle()