Making sure dialogs are on top of overlays