Update agreement publicView and seperate populateFiles from fileAttachments.