added a warning dialog