complete the function of delete a file and new a file in the treePanel