Prevent accidental navigation away from page.

Add confirmation before overwriting contact