def METHOD_NAME(self, *_):
    if self.search.panel.visible:
        self.search.panel.visible = False
    else:
        self.add.panel.visible = False
        self.plots.panel.visible = False
        self.search.panel.visible = True