figured out prototype and made link rendering seperate from nodes