added functionality for name label