converted refs to onChanges