Close the card popup if the save button is clicked