Something I had to learn in my early years as a teacher was that I needed to not focus on the trouble that students were causing me but to focus on the trouble they were encountering in their lives, both in and out of the classroom. Yes, it's painful when students make our lives more difficult, but we are there to serve their academic and personal growth needs, not the other way around. So a little mental shift helped me get my attitude right and help my students more effectively.