Ebook page logic defined here