separating out the pages