make an unordered html list behave like a tree