avoid accidental leaving of page when summary has not been saved.

Closes #19