add paginator in view