adds links fn