New and edit lesson work with new data hash