Added back button handling to clear search entry