added next page and prev page buttons