adding class first to rows