added confirmation dialog to confirm the deletion of query