the real time updates of tree based on renewed data finally works.