unset($output['action']);
     $finalString = implode(',', $output);
     $finalString = "'" . $user_id . "'," . $finalString;
     $update = $dbobj->updateApp($finalString);
     echo $finalString;
     //echo $update;
     break;
 case "change_flag":
     //change app status flag
     $msg = "";
     $update = $dbobj->updatestatus($cust_id, $action, $user_id, $msg);
     echo $update;
     break;
 case "unlock_app":
     //change app status flag
     $update = $dbobj->updatelockstatus($cust_id, $action);
     echo $update;
     break;
     //display DB result based on flag
 //display DB result based on flag
 case "reloads":
     //list info from DB
     $list = $dbobj->getreloads($action);
     //Build Buttons
     if (!empty($list)) {
         foreach ($list as $key => $listArray) {
             //build button
             $newarray = $listArray;
             $newarray["button1"] = "<input  value='Process' class='submit_info btn btn-md btn-primary' type='button' id='" . $listArray["reload_id"] . "' />";
             if ($action == 2) {
                 $newarray["button2"] = "<input  value='View' class='err_msg btn btn-md btn-danger' type='button' id='" . $listArray["result"] . "' />";