Added basic pagination to pages