use basis.template.define and small fixes
reduce basis.ui.Node#templateUpdate usage
small fixes
use basis.template.define