added rename functionality to tree manager