add links functionality