Added delete and download function