add when_changed when_failed example to docsite