add span tag to warning/view