added name label

logic for name label