Modified PG pages update code