Added insert and delete to TableEdit, added ajax calls to view methods, and renamed types to fields.