Open the update link when clicking the download button and close the dialog when pressing the cancel button