Adding the way to update input when user click on the download button.