snippets for compositeviews and appRouters