Proper alert hiding after searching