Dismiss modal dialogs by clicking overlay