wrapping previous and next buttons in line item, fixes #7