change history pagination to kaminari