added registerOptionChangeDetectors