Optimized the diff views synchronizatiokn