refactor Courseware block