fix the popup modal for saving