add diff functionality for pages