add previous and next page and modify some styles