adding log display for selection text

remembered that the req was for value AND name of selection