fixed template status code, updated headers and template title