pages and btns are well connected but page index bug reamined