close modal dialog with esc