updating demo app and making event receiver weak referenced