enable to hide dialog.