Directives added for enable and disable and detect data has changed or not.