updated templates so that they server static files better