progress bar resets every time the share modal is unclicked