render error 404 into layout; moved router->generate into static jhana helper method