Added some more thoughts on showing dialogs