added download link
updates to rerendering logic