Made download button work