adds link and asks to write link function