changes to course controller and model