clean up documents controller