update documents controller
update peer model