incorporate ngChange into input