Made search dialog cancellable again.