working listener example with minimal xml