refactor demo to use spatial-trigger