adding pagination on controller item