Update tree data structure and rendering