Added grid pagination