consolidated onClearSearch() and doReset()