added pagination funct. and applied it to prod#ind