rendering url to file and writing hyperlink