withdraw dialog opening on click