show open or close dialog