Added page add function