Populating documents and links