Download button full functionality