Adjusted the nameLabel functionality