begin redesign of template loading