refactoring RefreshTreeView method by making null by default parentNode