add link functionality