Added if statement to stop unassigned nodes having a pop up dialog