Added sub-edit buttons.
Tidy.
Added isInvalidated fields.
Added lesson invalidation.
Tidy.