block/qmplus_course_overview: Refactoring to fix styling issues