YUI template reorganized