a simple pagination for view