Add min depth, maxDepth and active class