installed kaminari for page pagination
modified the partial and controllers