Polish the warning dialog, move it out of applet into gui