Closing two overlay pop-ups at once -- is this possible?

I have one pop-up modal that comes up when clicking “Edit” from multiple different frames. From the “Edit” modal, a user can then click cancel, which pulls up another pop-up asking, “are you sure?”

If the user clicks “cancel,” I want both the cancel pop-up and the edit pop-up to close back to the frame the user was originally on. Is this possible?

Below is a quick screen recording that walks through and explains a bit more:

Hello @Leanna_Merrell

Just link the don’t save button to your main screen, (On click > Navigate to “Your main screen”)

Like that, It will close all overlays.

It will look smth like this: