Page Factory sample code updated