Adding links to lines