Made addgloss dialogs close when saved