Allow to close modal dialog