update class on alert