Implemented popup in order to confirm the query cancellation