dialog closing fixed