move templates to framework