Refactored for consistency
When the group dialog is closed, changes will now be discarded
DRYer code for triggering edits on labels