corrected search bar event trigger