adding detection of duplicate links - need to resolve js.alert issues