Object gui upgraded

The edit and new buttons are working.
Visible field implemented.
Disabled unfinished buttons.
tree.py modified to be more efficient