Re-factored the node select events related to input and output links