Tweaking the 'confirmation leave page' functionality.