replaced returntypes of pinPage and newPage