add collapse and expand buttons to the tree view