page index refactor/remade