add previous page button and next page button in view.