Add close button on dialogs