add warning-class in panel