updated tree population for directories
create and remove tree nodes when creating and removing directories