in my opinion, The qualities of a good teacher are endless, but a few that really seem to work for me include these listed here.
Respect your students. Kids want to respect you and when you show resect for them by giving them just and fair service they will respect you. Allow them to have their own feelings, beliefs, and values, but hold them accountable to treat you and each of their peers with positive moral behaviors.
Have clear boundaries. When students understand their targets for behavior they generally follow them. If you expect students not to chew gum in your classroom, then enforce it. Make the first student you see chewing gum spit it out, and give them the consequence you told them you would give them.
Challenge them academically. If students get bored, they act out. Even for students who don't think they want to be a part of a class activity, they usually do - we all want acceptance.