fix close dialog on click on overlay