Fix download button functionality for mobile device