generated courses controller