setting the CmatSettings to have a state_observer field when thet state is observered. now it is only set once