Add label function and optimize

The label now changes when the slider is being moved. Expanded the
width of the className on the table so that longer names actually fit
the space provided instead of having a name be “text…”