Added download button on history page