refactoring of our lmsViews