added new method to load templates