Updating the pagination a bit for better compatability for bootstrap 3