documents controller updates