Use addPage instead of setPage