$head_object->attribute_type = "Head";
    if ($rem_head_att == false) {
        $head_object->save();
    } else {
        $head_object->mark_deleted($head_object->id);
    }
    //end if controller information only
}
//New or Update DataSet Attribute Body////////////////////////////////////////////
if (!empty($_REQUEST['direction'])) {
    //only update controller information, ignore attribute stuff
} else {
    $rem_body_att = false;
    $body_object = new DataSet_Attribute();
    if (!empty($_REQUEST['body_att_id']) && $_REQUEST['body_att_id'] != "") {
        $body_object->retrieve($_REQUEST['body_att_id']);
        $body_is_update = true;
        //check to see if we are removing this attribute (Unchecking);
        if (empty($_POST['modify_body'])) {
            //set remove attribute flag
            $rem_body_att = true;
        }
        //end if update nested
    } else {
        //Still no body attribute, keep it this way
        if (empty($_POST['modify_body'])) {
            //set remove attribute flag
            $rem_body_att = true;
        }
    }
    foreach ($body_object->column_fields as $field) {