Correctly delete nodes gui