How to track when the submitted data has been changed?