close modal dialog when backdrop is clicked