Add and remove rows in popup_tree1.py