code: def show(self, index):
          
          if self.menu and self.menu.parent:
              self.text = "Return to %s" % self.menu.parent.title
              # Check if menu title ends with menu. (Some menus will include Menu in the name).
              if not self.text.strip().lower().endswith("menu"):
                  self.text += " menu"
          else:
              self.text = "Exit"
          return super(ExitItem, self).show(index)
docs: This class overrides this method