refactor confirm link