save xy into pages