FIXED popup dialog dismissing