Add function to remove dead nodes from the controller.
Update to add conditional node delete button