added controller methods for courses