working on connecting links to download function