updated will_pagination implementation file