implement chains number in table page and rules number in chain page