Edit code chanages pertaining to pagination