 
                 new_doc = active[dirop]()
                 if new_doc.length == 0
-                    # we have to switch back one step in the lvl2 category
+                    # we have to switch one step #{dirop} in the lvl2 category
                     lvl2_active = @lvl2.find(".active")
                     new_lvl2 = lvl2_active[dirop]()
                     if new_lvl2.length == 0
                         lvl1_active = @lvl1.find(".active")
-                        # now, we also have to step back in the highest lvl1 category
+                        # now, we also have to step #{dirop} in the highest lvl1 category
                         new_lvl1 = lvl1_active[dirop]()
                         if new_lvl1.length == 0
                             new_lvl1 = @lvl1.children()[carryop]()

                key = keys[0]
                entries2 = entries[key]
                if list == @lvl1
                    #@cat1 = key
                    #@fill_list(@lvl2, entries2)
                    @select_lvl1(@lvl1.find("[data=#{key}]"))
                else if list == @lvl2
                    #@cat2 = key
                    #@fill_list(@document, entries2)
                    @select_lvl2(@lvl2.find("[data=#{key}]"))

exports.show = () -> new Wizard()

    constructor: (opts) ->
        @opts = defaults opts,
            lang  : 'sage'
            cb    : required # this callback will be called to return the selected code

        @dialog = wizard_template.clone()

