fix empty searches; and allow empty searches to cancel search