update text content and spacing in book