Updated to only update page if it has changed