disable ui while query is running.