added example callbacks on demos