input box clears when a user submits a search