Added Pagination to the application