added custom search clearing