update method add, edit, remove tree's item.