When working in groups, it’s helpful to have students anonymously give feedback about other group members. They can discuss what went well, what needed changing and how group work can be better. This information is to be shared by the teacher with the entire class.
Also, it helps to intentionally pair students and create a seating chart. If a student chooses to exhibit behaviors that affect the class, the teacher can use proximity and least invasive redirection to get the student back on task.
Another beneficial method is giving students who may make poor choices classroom jobs and tasks that allow them to maintain focus on something as they work.