Updated Page ID generator