add listener to display words