pagination rendering optimization