fixing the lesson edit action