Pagination functionality

Added pagination when pages exceed 1.