Add EditGroupDialog class for editing and adding groups