def METHOD_NAME(self, index, skip_first_screenshot=True):
    """
    Args:
        index (int):
            1 for formation
            2 for meowfficers
            3 for auto search setting
        skip_first_screenshot (bool):
        Returns:
            bool: whether sidebar could be ensured
                  at most 3 attempts are made before
                  return False otherwise True
    """
    if index <= 0 or index > 5:
        logger.warning(f'Sidebar index cannot be ensured, {index}, limit 1 through 5 only')
        return False
    counter = 0
    while 1:
        if skip_first_screenshot:
            skip_first_screenshot = False
        else:
            self.device.screenshot()
        if self._fleet_preparation_sidebar_click(index):
            if counter >= 2:
                logger.warning('Sidebar could not be ensured')
                return False
            counter += 1
            self.device.sleep((0.3, 0.5))
            continue
        else:
            return True