moved templatetags