Refactor nodelink to include new initialization code and dynamic labels