Added change handler for text input.