'
                  $('#' + instance_select).append("<option value='" + val + "'>" + term + "</option>");
                }
                $('#' + instance_select).selectpicker();
              } else {
                console.log('data.status:' + status);
              }
            }
    );
  }

  function submitDiagnostic(type) {
    var appId;
    var size;
    var nodes;
    var params = [];
    if (type == 0) {
      appId = $('#scan-select').selectpicker('val');
      if (appId == null || appId == '