Updates to opening and closing dialogs