added convenience methods for adding/setting html snippets