Add button of next/previous page. Fix page counting bug in servlet.