reset form state if changes have been reverted to original values