Now dialog is closed when options are visible.