Refactor Lesson related html and view