cleaned up course_management controller