update tooltip handling in template snippets