add download links to template variables