add new course widget & add helper function in Course.java