setup OnConfigurationChanged.