Improve form changes detection

Original form data is compared to current data when exiting the page. The confirm dialog show up only if the data has been changed.
Merge pull request #1482 from EmmanuelVella/patch-9

Improve form changes detection