Added pagintation to index