Added nameHidden attribute and showName logic