Refactor treeview js
Fix delete modal behavior
Fix rename on subnode