added:  support for clearing the input field