init tree view