Add cancel for previous query