fix download button and improve speed