auto-update diff changes when view content is edited