move helper registration from UI to Template

UI is now deprecated.