add onCreate for hooking into to Element templates