diff --git a/uc_attribute/lib/Drupal/uc_attribute/Form/AttributeOptionsForm.php b/uc_attribute/lib/Drupal/uc_attribute/Form/AttributeOptionsForm.php
index bcc3830..3493c0f 100644
--- a/uc_attribute/lib/Drupal/uc_attribute/Form/AttributeOptionsForm.php
+++ b/uc_attribute/lib/Drupal/uc_attribute/Form/AttributeOptionsForm.php
@@ -29,44 +29,65 @@ class AttributeOptionsForm extends FormBase {
 
     drupal_set_title(t('Options for %name', array('%name' => $attribute->name)), PASS_THROUGH);
 
-    $form['options'] = array();
-    foreach ($attribute->options as $key => $data) {
-      $form['options'][$key] = array(
-        'name' => array(
-          '#markup' => check_plain($data->name),
-        ),
-        'cost' => array(
-          '#theme' => 'uc_price',
-          '#price' => $data->cost,
-        ),
-        'price' => array(
-          '#theme' => 'uc_price',
-          '#price' => $data->price,
-        ),
-        'weight' => array(
-          '#markup' => (string)$data->weight,
-        ),
-        'ordering' => array(
-          '#type' => 'weight',
-          '#delta' => 50,
-          '#default_value' => $data->ordering,
-          '#attributes' => array('class' => array('uc-attribute-option-table-ordering')),
+    $form['options'] = array(
+      '#type' => 'table',
+      '#header' => array(
+        $this->t('Name'),
+        $this->t('Default cost'),
+        $this->t('Default price'),
+        $this->t('Default weight'),
+        array('data' => $this->t('List position'), 'sort' => 'asc'),
+        $this->t('Operations'),
+      ),
+      '#empty' => t('No options for this attribute have been added yet.'),
+      '#tabledrag' => array(
+        array('order', 'sibling', 'uc-attribute-option-table-ordering'),
+      ),
+    );
+
+    foreach ($attribute->options as $oid => $option) {
+      $form['options'][$oid]['#attributes']['class'][] = 'draggable';
+      $form['options'][$oid]['name'] = array(
+        '#markup' => check_plain($option->name),
+      );
+      $form['options'][$oid]['cost'] = array(
+        '#theme' => 'uc_price',
+        '#price' => $option->cost,
+      );
+      $form['options'][$oid]['price'] = array(
+        '#theme' => 'uc_price',
+        '#price' => $option->price,
+      );
+      $form['options'][$oid]['weight'] = array(
+        '#markup' => (string)$option->weight,
+      );
+      $form['options'][$oid]['ordering'] = array(
+        '#type' => 'weight',
+        '#delta' => 50,
+        '#default_value' => $option->ordering,
+        '#attributes' => array('class' => array('uc-attribute-option-table-ordering')),
+      );
+      $form['options'][$oid]['operations'] = array(
+        '#type' => 'operations',
+        '#links' => array(
+          'edit' => array(
+            'title' => $this->t('Edit'),
+            'href' => 'admin/store/products/attributes/' . $attribute->aid . '/options/' . $oid . '/edit',
+          ),
+          'delete' => array(
+            'title' => $this->t('Delete'),
+            'href' => 'admin/store/products/attributes/' . $attribute->aid . '/options/' . $oid . '/delete',
+          ),
         ),
-        'edit' => array('#markup' => l(t('edit'), 'admin/store/products/attributes/' . $attribute->aid . '/options/' . $key . '/edit')),
-        'delete' => array('#markup' => l(t('delete'), 'admin/store/products/attributes/' . $attribute->aid . '/options/' . $key . '/delete')),
       );
     }
 
-    if (count($form['options'])) {
-      $form['options']['#tree'] = TRUE;
-
-      $form['actions'] = array('#type' => 'actions');
-      $form['actions']['submit'] = array(
-        '#type' => 'submit',
-        '#value' => t('Save changes'),
-        '#weight' => 10,
-      );
-    }
+    $form['actions'] = array('#type' => 'actions');
+    $form['actions']['submit'] = array(
+      '#type' => 'submit',
+      '#value' => t('Save changes'),
+      '#weight' => 10,
+    );
 
     return $form;
   }
diff --git a/uc_attribute/uc_attribute.admin.inc b/uc_attribute/uc_attribute.admin.inc
index 6510e0d..e4e407c 100644
--- a/uc_attribute/uc_attribute.admin.inc
+++ b/uc_attribute/uc_attribute.admin.inc
@@ -6,50 +6,6 @@
  */
 
 /**
- * Formats an attribute and its options.
- *
- * @param $variables
- *   An associative array containing:
- *   - form: A render element representing the form.
- *
- * @ingroup themeable
- */
-function theme_uc_attribute_options_form($variables) {
-  $form = $variables['form'];
-
-  $header = array(t('Name'), t('Default cost'), t('Default price'), t('Default weight'), array('data' => t('List position'), 'sort' => 'asc'), array('data' => t('Operations'), 'colspan' => 2));
-
-  $rows = array();
-  foreach (element_children($form['options']) as $oid) {
-    $rows[] = array(
-      'data' => array(
-        drupal_render($form['options'][$oid]['name']),
-        drupal_render($form['options'][$oid]['cost']),
-        drupal_render($form['options'][$oid]['price']),
-        drupal_render($form['options'][$oid]['weight']),
-        drupal_render($form['options'][$oid]['ordering']),
-        drupal_render($form['options'][$oid]['edit']),
-        drupal_render($form['options'][$oid]['delete']),
-      ),
-      'class' => array('draggable'),
-    );
-  }
-
-  drupal_add_tabledrag('uc-attribute-option-table', 'order', 'sibling', 'uc-attribute-option-table-ordering');
-
-  $output = theme('table', array(
-    'header' => $header,
-    'rows' => $rows,
-    'attributes' => array('id' => 'uc-attribute-option-table'),
-    'empty' => t('No options for this attribute have been added yet.'),
-  ));
-
-  $output .= drupal_render_children($form);
-
-  return $output;
-}
-
-/**
  * Displays the formatted attribute form.
  *
  * @param $variables
diff --git a/uc_attribute/uc_attribute.module b/uc_attribute/uc_attribute.module
index 79194e3..29d57da 100644
--- a/uc_attribute/uc_attribute.module
+++ b/uc_attribute/uc_attribute.module
@@ -109,10 +109,6 @@ function uc_attribute_theme() {
       'render element' => 'form',
       'file' => 'uc_attribute.admin.inc',
     ),
-    'uc_attribute_options_form' => array(
-      'render element' => 'form',
-      'file' => 'uc_attribute.admin.inc',
-    ),
     'uc_product_attributes' => array(
       'render element' => 'attributes',
       'file' => 'uc_attribute.admin.inc',
