added functionality to nameLabel