implemented observable for state changes.
Start of NCD implementation