set the tree title to the file name