before change controller