dialogs now close appropriately