separates the printing of download links into a separate method