added nameField functionality