implemented name label functionality