update inputs on text input