fixed delete. now deletes all children even if they are referenced but the reference is of a bigger scope the the obj to delete
fixed remove rows from treemodel