controller and model created
 adding pagination