handlUpdate can take the ID and the object itself