Added branch and leaf classes to rows