small changes in pagination