Add method to retrieve the search term entered by the user