updated tech demo app to use listener