small changes to the way task tree collapses