fixed typo in openid function template
moved old element templates to root template file