Add data persistence on lesson edit.