download button action is now update depending on state