fixed a bug where events were removed/not added within frames, and removed some extra scripts in examples