totally change the structure of the templates directory to be more maintenable