fix pagination for bootstrap 3

fix the pagination dom to allow it to work with bootstrap 3