Proper clearing of search field