adding links functionality