update link and dialog