changed the index table and changed the courses index and courses controller