Updated tree view collapse on click and refresh.