added links functionality