Editor application with a tree of objects - how to datamodel