changed to only render templates ending in ".html"