small fix

Fixed table css if no label is specified. Added a small helper function.