documents controller