pageindex: rename template variable from 'test' to 'pageindex'