Performance improvement

If there are a lot of 'li', it's getting really slow to open/close a
tree node, because all 'li's are changed. Just changing the visibility
of the whole 'ul' instead greatly improves performances