adding function for generating download link