addde 404 support for templates not found