This could probably use Bootstrap pagination classes instead.