Have control over your class
It is one of the responsibilities of a teacher to bring order and protect all students' right to learn in your classroom.
Do not ignore noncompliance. All students should be following your directions at all times.
Make sure your students know what to do throughout the class as soon as they walk into your classroom.