Keep students busy. When they sit around they get bored and think of mischief. Plan extra activities that they can do. Something that will be a challenge to them. Some students finish quicker than others, give them extra assignments, perhaps let them read an article about math and set up a reward system for every 10 articles they read. This way they will be kept busy and won't bother each other.