Made download buttons functional