feat(loading): Add loading gif to tree content and fix pagination