updated simple example. still needs more listeners and output to text field