adding better support for clear buttons on form fields