double check to make sure this is the only function that creates a new page (i.e. from id)