change AddNewCourse to a dialogbox