added paginations to index