add download button and functionality to page