while closing pop up page

Actually i am saving some info using an microflow while closing an pop-up page that opens on top of one page , but on click of that save button it also closing both pop -up and main form page returning to the landing page . EG : on click on save button it is closing both pop-up and background page as shown in image below.   Any suggessions will be helpfull. Thanks in advance
1 answers

What action is being performed on the save button, are you using the default save changes or calling a microflow on save?