ebook: add 2 page view; simplify the code