Update text in warning class