adding grid layout to Warning