             conn: conn, id: uuid, parent_id: ApmIssues.parent_id(uuid), 
             issue: ApmIssues.data(issue), children: ApmIssues.children_ids(uuid)
           )
-      {uuid, :not_found} -> "Issue #{uuid} not found"
+      {uuid, :not_found} -> display_not_found(uuid)
     end
   end
 
+  
   @doc"""
   Render one issue recursively
   """

    params = conn.params
    item_id = params["id"]
    case ApmIssues.lookup(item_id) do
      :not_found -> "Issue #{item_id} not found"
      _ -> render(
        "_issue_index.html", conn: conn, id: item_id, issue: ApmIssues.data(item_id),
        parent_id: ApmIssues.parent_id(item_id), children: ApmIssues.children_ids(item_id)

    ApmIssues.attributes(id).subject || ""
  end

  defp display_not_found(uuid) do
    raw "<header><p class='alert alert-danger'>Issue <b>#{uuid}</b> not found.</p></header>"
  end

end
