@Override
  protected void openRecord(long id) {
    Spell spell = Spell.load(Spell.class, id);

    EditSpellDialogFragment dialog = EditSpellDialogFragment.create(spell);
    dialog.show(getSupportFragmentManager(), "spell_edit");
  }
 @Override
 protected void deleteRow(long id) {
   Spell.delete(Spell.class, id);
 }