If you are approaching a time when students will need to transition from one activity give warning. Prepare students five minutes before, you can put a timer on the board as a visual reminder and a way for students to keep themselves accountable. Refer to the class timetable to let students know what is happening next.
If an unexpected change happens through the day give as much warning as possible. Explain to the student why it is happening and when.