Warn user when leaving a page with unsaved text refs #417