Added page creation function