working version with templates loading without directives