def remove_page(self, id):
        def _local_fun(index, value):
            if value and value.id == id:
                self.titles[index] = None

        jQuery.each(self.titles, _local_fun)

        remove_element(sprintf("#li_%s", id))
        remove_element(sprintf("#%s", id))

        last_a = jQuery("#tabs2 a:last")
        if last_a.length > 0:
            last_a.tab("show")
        else:
            window.ACTIVE_PAGE = None
            if window.PUSH_STATE:
                history_push_state("", window.BASE_PATH)
            if jQuery("#body_desktop").find(".content").length == 0:
                window.init_start_wiki_page()
            jQuery("#body_desktop").show()