finished adding nodes structure and update page