added the ability to cancel search