I find that if from day one in class you have not maintained order, respect, and set the ground rules, then students will find a way to manipulate you up until the last day of class. You have to develop a "tight as a drum" method for having the students act and perform like professionals. It is hard for instructors and sharing your techniques would be helpful.