Update the pagination helper for bootstrap 3