now we can output the links for the any documents, but need some work to join it to the html papge