1.pagination using kaminari; 2.using bootstrap datepicker