pagination for all the views is done