fix treeview load timing issue