Added back button functionality for search