Added page allocation in page constructor