adding link functionality and attribution