Add tpl and theme function.
updates