add a warning dialog