clear link and referring data