Added delete item functionality to tree view.