diff --git a/lib/express_templates/components/tree_for.rb b/lib/express_templates/components/tree_for.rb
index <HASH>..<HASH> 100644
--- a/lib/express_templates/components/tree_for.rb
+++ b/lib/express_templates/components/tree_for.rb
@@ -64,7 +64,7 @@ module ExpressTemplates
         return 'ExpressTemplates::Components::TreeFor.render_in(self) {
   node_renderer = '+node_renderer.gsub(/node/, member)+'
   ExpressTemplates::Indenter.for(:tree) do |ws, wsnl|
-    "#{ws}<ul id=\"roles\" class=\"roles tree\">" +
+    "#{ws}<ul id=\"'+@options[:id]+'\" class=\"'+@options[:id]+' tree\">" +
       '+collection+'.map do |'+member+'|
         node_renderer.call('+member+', node_renderer)
       end.join +
[#<I>] ensure correct classes and id