add common view snippets