Use viewer.name since viewer is a dictionary.