fix: bug with left/right button

At the start or at the end of the book was displayed the wrong button.