[P] adding link functionality