update on input instead of change event