corrected popup dialog