added pagination to pages/index