onChange call on constructor