add links function