IF logic for showing diff on update