code: private void setEnabledButtons() {
          int currentStep = getCurrentStep();
          if(currentStep < 0) {
             return;
          }
          
          boolean isPreviousEnabled = true;
          boolean isNextEnabled = true;
          
          if(getNextStep(currentStep) < 0 && currentStep != STEP_THANKS) {
              isNextEnabled = false;
          }
  
           if(getPreviousStep(currentStep) < 0) {
              isPreviousEnabled = false;
          }
  
          setIsControlEnable(previousButtonName, isPreviousEnabled);
          setIsControlEnable(nextButtonName, isNextEnabled);
  
          if(currentStep == STEP_OMISSIONS) {
              setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_SUBMIT);
              if(theCommunityLogic.hasBadInterventions() || theCommunityLogic.hasOmissions()) {
                  setIsControlEnable(nextButtonName, true);
              } else {
                   setIsControlEnable(nextButtonName, false);
              }
              
          } else if (currentStep == STEP_THANKS) {
              setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_FINISH);
          } else {
              setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_NEXT);
          }
  
      }
docs: Sets the previous/next buttons