Close modal dialog on ESC
Enhance modal dialog to make closing by clicking outside possible