changed the way that top bar tests for the existence of a name to avoid stray comma from being rendered