Add function to update lesson based on changes to event