revert modals confirmation on cancel