update warning box