update text color for warning box