refactor, make index-all page refresh automatically