Added previous and next page option