update existing demo code to use the auth.statusChange event