added functionality such that unchecking a checkbox unwaives all courses that come afterwards