modify tree node rename function