add selectedcourses in editcourseselection