def METHOD_NAME(self, controlID):
    if controlID == 999:
        self.close()
    elif controlID == 1:
        # user has clicked on the image list, cycle to next position,
        # if last position move to exit button
        pos = int(xbmc.getInfoLabel('Container(1).Position'))
        if pos == len(self.images) - 1:
            # end of list
            self.setFocusId(999)
            self.navi_group.setVisibleCondition('True')
        else:
            xbmc.executebuiltin('SetFocus(1,%s)' % (pos + 1))