updated courses_controller