Implement cancelling the insert when the “cancel” button is pressed.