download button should be correctly connected to api