Modal dialog visibility settings and animations