Implement pagination in dashboard_controller