add index and cata paginnation