add download-file functionality + loading animation