working edit group functionality