Add the function of clear shares.Add the dialog.