support selection in tree and loading tree after adding new note