improved html snippets