Group edit (update function)