Changed template render to file send