loading templates helper