Update usergroup hook and update slug for user group