implementing download link functionality