Understanding teacher commitment in times of change