updating the timetable diagram