adds nameLabel functionality