Updated courses_controller