installed warnings when leaving routes or page
Merge pull request #332 from CyberCRI/warn-on-leave-edit

Installed warnings when leaving routes or page